package com.bg.constant;

/**
 * @Auther: zhengshunzhi
 * @Date: 2018/12/20 15:01
 * @Description: 项目常量配置
 */
public interface Constants {
    //<!------------------------------------------------------zk配置--------------------------------------------------->
    //zk地址和端口
    String ZK_SERVERS = "zkServers";

    //超时时间
    String ZK_SESSION_TIMEOUT = "zkSessionTimeOut";

    //配置根节点
    String zkPath = "zkPath";

    // 锁根节点
    String ZK_ROOT_LOCK = "zkRootLock";


    //<!-------------------------------------------------------jdbc配置------------------------------------------------>
    //zk中配置的jdbc中的key
    String JDBC_DRIVER = "driver";

    String JDBC_URL = "url";

    String JDBC_UNAME = "uname";

    String JDBC_PASSWORD = "password";

    String JDBC_READONLY = "readOnly";

    String JDBC_CONNECTTIN_TIMEOUT = "connectionTimeout";

    String JDBC_IDLE_TIMEOUT = "idleTimeout";

    String JDBC_MAX_LIFT_TIME = "maxLifetime";

    String JDBC_MAXIMUM_POOL_SIZE = "maximumPoolSize";
}
